﻿@using Sausage.Web.Domain
@using Sausage.Web.DataModel
@model Sausage.Web.DataModel.MaintainQuantity
@{
    ViewBag.Title = string.Format("养护工程量详细信息（{0}）", Model.MaintainCode);
    Layout = "~/Views/Shared/MainLayout.cshtml";
}
<h2>@ViewBag.Title</h2>
<br />
<div class="form-box">
    <table class="TableDetail">
        <tr>
            <th>
                养护编号
            </th>
            <td>
                @Html.DisplayFor(model => model.MaintainCode)
            </td>
        </tr>
        <tr>
            <th>
                所属单位
            </th>
            <td>
                @Html.DisplayFor(model => model.Organization.OrganizationName)
            </td>
        </tr>
        <tr>
            <th>
                线路名称
            </th>
            <td>
                @Html.DisplayFor(model => model.Roadway)
            </td>
        </tr>
        <tr>
            <th>
                起点桩号
            </th>
            <td>
                @Html.DisplayFor(model => model.BeginStake)
            </td>
        </tr>
        <tr>
            <th>
                终止桩号
            </th>
            <td>
                @Html.DisplayFor(model => model.EndStake)
            </td>
        </tr>
        <tr>
            <th>
                养护类型
            </th>
            <td>
                @Html.DisplayFor(model => model.MaintainCategory.CategoryName)
            </td>
        </tr>
        <tr>
            <th>
                养护工程量
            </th>
            <td>
                @string.Format("{0:#,##0.00}", Model.Quantity)&nbsp;&nbsp;@Html.DisplayFor(model => model.MaintainCategory.Unit)
            </td>
        </tr>
        <tr>
            <th>
                估算单价
            </th>
            <td>
                @string.Format("{0:#,##0.000}", Model.Price)
            </td>
        </tr>
        <tr>
            <th>
                小计
            </th>
            <td>
                @string.Format("{0:#,##0.00}", Model.Amount)
            </td>
        </tr>
        <tr>
            <th>
                养护日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.ApplicationDate)
            </td>
        </tr>
        <tr>
            <th>
                填报人
            </th>
            <td>
                @Html.DisplayFor(model => model.Applicant)
            </td>
        </tr>
        <tr>
            <th>
                填报日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.CreateDate)
            </td>
        </tr>
        <tr>
            <th>
                审核人
            </th>
            <td>
                @Html.DisplayFor(model => model.Auditor)
            </td>
        </tr>
        <tr>
            <th>
                审核日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.AuditedDate)
            </td>
        </tr>
        <tr>
            <th>
                批准人
            </th>
            <td>
                @Html.DisplayFor(model => model.Approver)
            </td>
        </tr>
        <tr>
            <th>
                批准日期
            </th>
            <td>
                @string.Format("{0:yyyy年MM月dd日}", Model.ApprovedDate)
            </td>
        </tr>
        <tr>
            <th>
                备注
            </th>
            <td>
                @Html.DisplayFor(model => model.Memo)
            </td>
        </tr>
        <tr>
            <th>
                相关内容
            </th>
            <td>
                <ul class="QuickList">
                    <li>@Html.ActionLink("养护日志", "ViewQuantityJournal", "MaintainJournal", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                    <li>@Html.ActionLink("养护人工", "ViewQuantityLabour", "MaintainLabour", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                    <li>@Html.ActionLink("养护材料", "ViewQuantityMaterial", "MaintainMaterial", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                    <li>@Html.ActionLink("养护机械", "ViewQuantityMachine", "MaintainMachine", new { quantityID = @Model.QuantityID }, new { @target = "_blank" })</li>
                </ul>
            </td>
        </tr>
    </table>
</div>
<br />
